﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="RedemptoristRetreatCenter.Search" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1><%: Title %>Search for a Retreat</h1>
            </hgroup>    
            <table style="width: 100%;">
                <tr>
                    <td class="auto-style1">Title:&nbsp;</td><td class="auto-style2"><asp:TextBox ID="searchTitle" runat="server" Width="406px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="auto-style1">Start Date:&nbsp;</td><td class="auto-style2"><asp:TextBox ID="searchStartDate" runat="server" Width="406px"></asp:TextBox></td>
                    <asp:CompareValidator ID="dateValidator1" runat="server" Type="Date" Operator="DataTypeCheck" ControlToValidate="searchStartDate" ErrorMessage="&nbsp;&nbsp;Please enter a valid date." ForeColor="Red" ></asp:CompareValidator>
                </tr>
                <tr>
                    <td class="auto-style1">End Date:&nbsp;</td><td class="auto-style2"><asp:TextBox ID="searchEndDate" runat="server" Width="406px"></asp:TextBox></td>
                    <asp:CompareValidator ID="dateValidator2" runat="server" Type="Date" Operator="DataTypeCheck" ControlToValidate="searchEndDate" ErrorMessage="&nbsp;&nbsp;Please enter a valid date." ForeColor="Red" ></asp:CompareValidator>
                </tr>
            </table>
            <br />
            <br />
            <asp:Button runat="server" ID="searchRetreatButton" OnClick="searchButton_Click" Text="Search" ForeColor="#000000">
            </asp:Button>&nbsp;&nbsp;
            <asp:Literal ID="statusMessage" runat="server"></asp:Literal>
        </div>
    </section>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
</asp:Content>